//
//  YLMineTableViewController.swift
//  weiBo
//
//  Created by 杨雷 on 2016/11/30.
//  Copyright © 2016年 Yang.L. All rights reserved.
//

import UIKit

class YLMineTableViewController: YLVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        if islogin {
            setupUI()
        } else {
            visitorV?.changeVisitorInfo(imageName: "visitordiscover_image_profile", message: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人")
        }
    }
    
    private func setupUI() {
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Push", target: self, action: #selector(pushAction))
    }
    
    @objc private func pushAction () {
        let pushVC = YLPushViewController()
        
        self.navigationController?.pushViewController(pushVC, animated: true)
        
        
    }
    
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
}
